import Vue from 'vue'
import store from './store'
import App from './App'
import BottomNav from './components/BottomNav'
import Head from './components/Head'
import TopTips from './components/TopTips'
import Popup from './components/Popup'
import Empty from './components/Empty'
import Pay from './components/Pay'
import http from '@/utils/http'
import api from '@/api'
import ws from '@/utils/ws.js'
import uView from 'uview-ui'
import './static/css/resetForm.css'
import './static/css/base.css'
Vue.use(uView);
Vue.config.productionTip = false
App.mpType = 'app'
Vue.component('BottomNav', BottomNav)
Vue.component('Head', Head)
Vue.component('TopTips', TopTips)
Vue.component('Popup', Popup)
Vue.component('Empty', Empty)
Vue.component('Pay', Pay)
Vue.prototype.$ws = ws
const app = new Vue({
	store,
	...App
});

// #ifdef H5
RouterMount(app, '#app');
// #endif

// #ifndef H5
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
export default app